Skip to content

chore(deps): update Native SDK to v0.13.5#2631

Merged
JoshuaMoelans merged 2 commits intomainfrom
deps/modules/sentry-native/0.13.5
Apr 8, 2026
Merged

chore(deps): update Native SDK to v0.13.5#2631
JoshuaMoelans merged 2 commits intomainfrom
deps/modules/sentry-native/0.13.5

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 7, 2026

Bumps modules/sentry-native from 0.13.5-2-g814b822 to 0.13.5.

Auto-generated by a dependency updater.

Changelog

0.13.5

Features:

  • Add HTTP retry with exponential backoff, opt-in via sentry_options_set_http_retry. (#1520)
  • Store minidump attachments as separate .dmp files in the offline cache for direct debugger access. (#1607)
  • Enable metrics by default; metrics are now opt-out via sentry_options_set_enable_metrics(options, false). (#1609)

Fixes:

  • native: Fix crash daemon failing to detect crashes during OOM on Windows. (#1603)
  • Fix WinHttpReceiveResponse failures being silently ignored, which could cause envelopes to be lost instead of retried or cached. (#1620)
  • Fix missing screenshot attachment in native backend envelope. (#1624)
  • Replace googlesource submodules with GitHub ones. (#1628)
    • This fixes build-time failures where building sentry-native fails with HTTP 403 errors when fetching the zlib and lss libraries from Chromium.

@bruno-garcia bruno-garcia force-pushed the deps/modules/sentry-native/0.13.5 branch from fcedc65 to f5e707b Compare April 7, 2026 16:05
@github-actions
Copy link
Copy Markdown
Contributor Author

github-actions bot commented Apr 7, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • Sync attachments on Android, Windows, and Linux by bitsandfoxes in #2609
  • Improve Xbox native support by bitsandfoxes in #2617

Bug Fixes 🐛

  • Remove dependency on AnalyticsSessionInfo by bitsandfoxes in #2625
  • Pass failed request codes down to cocoa by bitsandfoxes in #2619

Internal Changes 🔧

Deps

  • Update Native SDK to v0.13.5 by github-actions[bot] in #2631
  • Update .NET SDK to v6.3.1 by github-actions in #2632
  • Update .NET SDK to v6.3.0 by github-actions in #2615
  • Update Native SDK to v0.13.4 by github-actions in #2612
  • Update CLI to v3.3.5 by github-actions in #2614
  • Update CLI to v3.3.4 by github-actions in #2604
  • Update Java SDK to v8.37.1 by github-actions in #2605
  • Update Cocoa SDK to v9.8.0 by github-actions in #2596
  • Update Native SDK to v0.13.3 by github-actions in #2597
  • Update Java SDK to v8.36.0 by github-actions in #2591

Other

  • Update validate-pr workflow by stephanie-anderson in #2618
  • Add PR validation workflow by stephanie-anderson in #2608
  • Pin GitHub Actions to full-length commit SHAs by joshuarli in #2601

Other

  • Fix command injection vulnerability in iOS workflow by fix-it-felix-sentry in #2598

🤖 This preview updates automatically when you update the PR.

@@ -1 +1 @@
Subproject commit a35214dccd4e6ce0cef1b5818a8558b02f7a1eca
Subproject commit 6ebd29bd9742fd2f93b6770b5023e31a8efbc10e
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The native SDK now enables metrics by default, but the EnableMetrics setting from the Unity configuration is not passed to the native layer, causing metrics to be collected unexpectedly.
Severity: HIGH

Suggested Fix

In SentryNativeBridge.cs, add a P/Invoke declaration for sentry_options_set_enable_metrics. Then, in the Init() method, call this new function with the value from options.EnableMetrics to ensure the Unity configuration is respected by the native SDK. For example: sentry_options_set_enable_metrics(cOptions, options.EnableMetrics ? 1 : 0);.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: modules/sentry-native#L1

Potential issue: The update to the native SDK (v0.13.5) changes the default behavior to
enable metrics. However, the Unity SDK's `SentryNativeBridge.cs` was not updated to
synchronize the `EnableMetrics` setting, which defaults to `false`, with the native
layer. As a result, even when users have metrics disabled in their Unity configuration,
the native SDK will collect and send them. This leads to unintended data collection,
which can affect performance and increase quota usage and costs for users on native
platforms like Windows, macOS, and Linux.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True-ish, develop docs recently changed to state the default for metrics should be true, and this was applied to sentry-native but not Unity yet. The only metrics that we collect in Native are manual calls to the sentry_log_X API.

I'll check if we need to sync the setting though (and whether we want to auto-enable in Unity as well)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do as a follow-up

@JoshuaMoelans JoshuaMoelans merged commit 7a1ad40 into main Apr 8, 2026
69 checks passed
@JoshuaMoelans JoshuaMoelans deleted the deps/modules/sentry-native/0.13.5 branch April 8, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants